package com.sumainfor.pc.gmio.feign.Zfeign;



import com.sumainfor.common.util.JsonResult;
import com.sumainfor.pc.gmio.fallback.ZfallBack.ZwxTenantFeignFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;
import java.util.Map;

/**
 * 调用租客端服务
 */
@FeignClient(name = "tANGNEST-WX-TENANt", fallback = ZwxTenantFeignFallback.class)
public interface ZwxTenantFeign {
    /**
     * 根据租客手机号查询租客编号
     */
    @ResponseBody
    @PostMapping("/key/tctenTenantEva/getTenantTenPhone")
    JsonResult getTenantTenPhone(@RequestBody Map<String,Object> params);
    /**
     * 修改优惠卷为已使用
     */
    @PostMapping("/housekeeper/TenantCoupons/key/updateHotc")
    JsonResult updateHotc(@RequestBody Map<String,Object> params);


    @PostMapping("/provider/key/tenant/FwmsSearch/getNameOrPhoneList")
    List<Map<String,Object>> getNameOrPhoneList(@RequestParam("search") String search);


    @PostMapping("/provider/key/tenant/schedulten/getTenOpenId")
    JsonResult getTenOpenId(@RequestBody Map<String,Object> params);

    @PostMapping("/provider/key/tenant/FwmsSearch/getTenantXinxi")
    Map<String,Object> getTenantXinxi(@RequestBody Map<String,Object> params);

}
